#!/bin/bash

CUDA_PATH="/usr/local/corex"
CUDA_ARCH=ivcore11




#rm -f libSHOCCommon.a CTimer.o ResultDatabase.o OptionParser.o Option.o Timer.o ProgressBar.o InvalidArgValue.o Matrix2DStatics.o
rm -f ResultDatabase.o OptionParser.o Option.o ProgressBar.o 


#clang++ -std=c++11  -g -DCUDA_BI --cuda-path=${CUDA_PATH} -DHAVE_CONFIG_H -I. -I../../config -I${CUDA_PATH}/include -I${CUDA_APTH}/extras/CUPTI/include -I../../src/common -o CTimer.o -c CTimer.cpp
clang++ -std=c++11  -g -DCUDA_BI --cuda-path=${CUDA_PATH} -DHAVE_CONFIG_H -I. -I../../config -I${CUDA_PATH}/include -I${CUDA_PATH}/extras/CUPTI/include -I../../src/common -o ResultDatabase.o -c ResultDatabase.cpp
clang++ -std=c++11  -g -DCUDA_BI --cuda-path=${CUDA_PATH} -DHAVE_CONFIG_H -I. -I../../config -I${CUDA_PATH}/include -I${CUDA_PATH}/extras/CUPTI/include -I../../src/common -o OptionParser.o -c OptionParser.cpp
clang++ -std=c++11  -g -DCUDA_BI --cuda-path=${CUDA_PATH} -DHAVE_CONFIG_H -I. -I../../config -I${CUDA_PATH}/include -I${CUDA_PATH}/extras/CUPTI/include -I../../src/common -o Option.o -c Option.cpp
#clang++ -std=c++11  -g -DCUDA_BI --cuda-path=${CUDA_PATH} -DHAVE_CONFIG_H -I. -I../../config -I${CUDA_PATH}/include -I${CUDA_PATH}/extras/CUPTI/include -I../../src/common -o Timer.o -c Timer.cpp
clang++ -std=c++11  -g -DCUDA_BI --cuda-path=${CUDA_PATH} -DHAVE_CONFIG_H -I. -I../../config -I${CUDA_PATH}/include -I${CUDA_PATH}/extras/CUPTI/include -I../../src/common -o ProgressBar.o -c ProgressBar.cpp
#clang++ -std=c++11  -g -DCUDA_BI --cuda-path=${CUDA_PATH} -DHAVE_CONFIG_H -I. -I../../config -I${CUDA_PATH}/include -I${CUDA_PATH}/extras/CUPTI/include -I../../src/common -o InvalidArgValue.o -c InvalidArgValue.cpp
#clang++ -std=c++11  -g -DCUDA_BI --cuda-path=${CUDA_PATH} -DHAVE_CONFIG_H -I. -I../../config -I${CUDA_PATH}/include -I${CUDA_PATH}/extras/CUPTI/include -I../../src/common -o Matrix2DStatics.o -c Matrix2DStatics.cpp

#ar rcs libSHOCCommon.a CTimer.o ResultDatabase.o OptionParser.o Option.o Timer.o ProgressBar.o InvalidArgValue.o Matrix2DStatics.o
#ar rcs  libSHOCCommon.a ResultDatabase.o OptionParser.o Option.o ProgressBar.o
#ranlib libSHOCCommon.a

